home *** CD-ROM | disk | FTP | other *** search
- Path: sn.no!not-for-mail
- From: christon@sn.no (Christopher Naas)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Shared library open and close functions
- Date: 20 Feb 1996 17:04:32 +0100
- Organization: SN Internett
- Message-ID: <1216.6624T889T380@sn.no>
- References: <510.6619T1238T1638@Th0r.foo.bar> <DMvCKp.MD4@unx.sas.com>
- NNTP-Posting-Host: sinsen.sn.no
- X-Newsreader: THOR 2.21 (Amiga;SOUP)
-
- Doug Walker wrote:
-
- >In version 6.50, you can create a __UserLibInit and __UserLibTerm function
- >and they will be automatically called. Check out your Library Reference
- >Manual for more details.
-
- Yes, but I have to link with startup=libinitr for sprintf to work. My
- smakefile is currently:
-
- ------------------------------------------------------------------------------
- all: Memory.kbb
-
- Memory.o: Memory.c
- sc libcode nostackcheck smallcode smalldata strmerge opt Memory.c gst
- include:all.gst math ffp
-
- Memory.kbb: Memory.o
- sc link Memory.o lib:scmffp.lib startup=libinitr noicons to Memory.kbb
- libfd Memory.fd libversion 1 librevision 0
- ------------------------------------------------------------------------------
-
- When I link with lib:scmffp to use floating point in sprintf ('%.2f'), I get
- an error from sc.lib. The library still works fine, though.
-
- Undefined symbols First Referenced
- __XCEXIT File 'LIB:sc.lib'
- Enter a DEFINE value for __XCEXIT (default ___stub):
-
- Why is this, and how do I get rid of it?
-
- --
- Christopher Landmark Naas o EMail: christon@sn.no
- LoungeBar Development o WWW: http://www.sn.no/~christon/
- Former Reg. Amiga Developer o IRC: KarmaComa
-